const teacherResourceRoutes = {
  path: "/teacher",
  meta: {
    showHeaderSider: true,
  },
  component: () => import("@/components/TeacherLayout/index.vue"),
  children: [
    {
      path: "manage",
      component: () => import("@/views/Teacher/index.vue"),
      meta: {
        showHeaderSider: false,
        showHome: false,
      },
      children: [
        {
          path: "course/course",
          component: () => import("@/views/Teacher/components/Course.vue"),
        },
        {
          path: "chapter/:path",
          component: () => import("@/views/Teacher/components/Resource.vue"),
          props: (route: any) => ({
            path: route.params.path,
          }),
        },
        {
          path: "update/uploadstate",
          component: () => import("@/views/Teacher/components/UploadState.vue"),
        },
        {
          path: "knowledgespace/:path",
          component: () => import("@/views/Teacher/components/KnowledgeSpace.vue"),
          props: (route: any) => ({
            path: route.params.path,
          }),
        },
      ],
    },
  ],
}

export default teacherResourceRoutes
